-- card: 14703 from stack: in -- bmap block id: 13676 -- flags: 0000 -- background id: 12278 -- name: hextodec -- part 1 (field) -- low flags: 01 -- high flags: 0004 -- rect: left=251 top=292 right=311 bottom=374 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: decimal -- part 2 (field) -- low flags: 00 -- high flags: 0004 -- rect: left=113 top=291 right=309 bottom=231 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: hex ----- HyperTalk script ----- on returninfield click at loc of card button "convert" end returninfield on enterinfield end enterinfield -- part 3 (button) -- low flags: 00 -- high flags: A003 -- rect: left=41 top=282 right=314 bottom=105 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Convert ----- HyperTalk script ----- on mouseUp put card field "hex" into temp put hextodec(temp) into card field "decimal" end mouseUp -- part contents for background part 68 ----- text ----- The HexToDec XFCN takes any hexadecimal number of 8 or fewer digits and converts it into the corresponding signed long integer. Try the deomonstration below to clarify any questions you may have. Just type in the hex number into the hex field and then click on the Convert button to see its corresponding decimal value appear in the decimal field. Note that the hex parameter may begin with an optional H-prefix. The hexadecimal digits A-F may appear as either upper or lowercase in the hexstring. -- part contents for card part 1 ----- text ----- 180150001 -- part contents for card part 2 ----- text ----- ABCDEF1